package com.springboot.application.controller;

import com.alibaba.nacos.api.config.annotation.NacosValue;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhengzihong
 * @version 1.0.0
 * @date 2018/10/31
 * @Description
 */
@RestController
public class HelloWordController {


    @NacosValue(value = "${useLocalCache}", autoRefreshed = true)
    private String testValue;

    @RequestMapping("/hello")
    public String getHello(){

        return "hello world";
    }


    @RequestMapping("/config")
    public String config(){
        return testValue;
    }
}
